/**
 * Copyright &copy; com.smooth.common
 */
package com.smooth.sys.pc.controller;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;

import com.smooth.common.site.common.utils.UserAgentUtils;
import com.smooth.common.site.common.web.BaseController;

/**
 * 订单Controller
 * 
 * @author 北冥
 * @version 2018-02-10
 */
@Controller
public class PcIndexController extends BaseController {
	protected Logger logger = LoggerFactory.getLogger(getClass());
//	@RequestMapping(value = { "/" }, method = { RequestMethod.POST, RequestMethod.GET })
	public void cardlist(HttpServletRequest request, HttpServletResponse response) throws IOException {
		logger.info("首页");
		if(UserAgentUtils.isMobileOrTablet(request)) {
			response.sendRedirect("/pc/page/m_index_1.html");
		}else {
			response.sendRedirect("/pc/page/index_1.html");
		}
	}
	
	
}